/**
 * Created by Administrator on 2018/5/30.
 */
$(function(){
    $('#discuss-box').keydown(function(event){
        if(event.which == 13){
            var content = $(this).val();
            var url = "http://39.105.67.193:8812/index/chart/index";
            var data = {'text':content};
            $.ajax({
                url : url,
                data : data,
                type : 'post',
                success : function (result){

                }
            })
        }
    });
});